package demo;

import com.tedu.InputField;

/**
 * DTO:数据传输对象，通常用于表示用户传递过来的信息
 * UserLoginDTO例如下面的类表示的是用户进行登录时传递过来的信息
 */
public class UserLoginDTO {
    @InputField(title ="用户名",notNull = true)
    private String username;
    @InputField(title ="密码",notNull = true)
    private String password;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
